-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Service hours chart #885
Conversation
tsconfig.json
Outdated
@@ -24,6 +24,6 @@ | |||
} | |||
] | |||
}, | |||
"include": ["next-env.d.ts", "globals.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], | |||
"include": ["next-env.d.ts", "globals.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "common/components/charts/TimeSeriesChart"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I ask why? I would expect this would already be covered by "**/*.ts", "**/*.tsx"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very strange. I did not make this change manually, some tool might have done it
Motivation
We want to graph the total number of (scheduled and delivered) service hours for Red, Orange, and Blue lines. This is a complementary metric to trip counts, which also happens to be more robust to shuttling.
Changes
Adds a new graph to
/<line>/service
:For now weekly/monthly aggregation is done on-the-fly instead of using agg tables, so large queries (2+ years) sometimes fail. There's also no reliable data before about 2018.
Also: I'm using
<TimeSeriesChart>
for the first time here! It powers this chart and now the scheduled/delivered trips chart, too.Testing Instructions
Visit the Service pages for Red, Orange, Blue and confirm that this graph loads and renders correctly.